package com.truongnha.clienttn.data.dao;

import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

public class ClassStudentScheme {
	public static final String TABLE_NAME = "class_student";
	public static final String ID = "id";
	public static final String CLASS_ID = "class_id";
	public static final String STUDENT_ID = "student_id";
	private static final String DATABASE_CREATE = "create table "
			+ TABLE_NAME + "(" + ID + " integer primary key  ," 
			+ CLASS_ID + "  INTEGER REFERENCES Class(class_id),"
			+ STUDENT_ID + "INTEGER REFERENCES Student(student_id) " 
			+ " );";

	// private static final String QUERY_TABLE_DROP = "DROP TABLE IF EXISTS " +
	// TABLE_AREA_NAME;
	public static void onCreate(SQLiteDatabase db) {
		Log.i("LOG", "on Create account table");
		db.execSQL(DATABASE_CREATE);

	}
}
